using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using FSS.BLL.Entities;
namespace FSS.BLL.Services
{
	#region CityService

	/// <summary>
	/// CityService object for Ibatis mapped table 'City'.
	/// </summary>
	public class CityService : ICityService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(CityService).Name);
	  	private static volatile CityService _CityService = null;
        public static CityService GetInstance()
        {
            if (_CityService == null)
            {
                lock (typeof(CityService))
                {
                    if (_CityService == null) // double-check
                        _CityService = new CityService();
                }
            }
            return _CityService;
        }
		public CityService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public IList<CityEntity> LoadAllExtra()
        {
            try
            {
                return ExecuteQueryForList<CityEntity>("CityLoadAllExtra", null);
            }
            catch (Exception ex)
            {
                log.Debug(ex.Message);
                return null;
            }
        }
	}
	#endregion  
}
